import Frame.MainFrame;
import Fish.Character;
public class Main {
	public static void main(String[] args) {
		//Testing
		MainFrame mainframe = new MainFrame();
		
		while(true){
			mainframe.gamePanel.updateHSF(System.currentTimeMillis());
			mainframe.gamePanel.updateShark(System.currentTimeMillis());
			mainframe.gamePanel.updateMonk(System.currentTimeMillis());
			mainframe.gamePanel.updateEll(System.currentTimeMillis());
			mainframe.gamePanel.updateNimo(System.currentTimeMillis());
			mainframe.gamePanel.updateBullet();
			mainframe.gamePanel.updateScore();
			if(mainframe.gamePanel.crash()){
				mainframe.death();
			}
			try {
				Thread.sleep(10);
			} catch (InterruptedException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
		}
	}
}